package com.liuyongyi.livepush.rtmp;

/**
 * Created by android on 2017/12/28.
 */

public class RtmpClient {
    public static native long open(String url, boolean isPublishMode);

    public static native int read(long rtmpPointer, byte[] data, int offset, int size);

    public static native int write(long rtmpPointer, byte[] data, int size, int type, int ts);

    public static native int close(long rtmpPointer);

    public static native String getIpAddr(long rtmpPointer);
}
